@extends('layouts.default')



@section('content')
    <div class="row">
        <div class="offset-md-2 col-md-8">
            <div class="col-md-12">
                <div class="offset-md-2 col-md-8">
                    <div class="card">
                        <h5 class="card-header d-flex justify-content-center">
                            用户注册
                        </h5>
                        <div class="card-body">
                            @include("shared._errors")
                            <form action="{{route("users.store")}}" method="POST">
                                @csrf
                                <div class="form-group">
                                    <label for="name">姓名:</label>
                                    <input type="text" name="name" class="form-control" id="name"  value="{{old("name")}}">
                                </div>
                                <div class="form-group">
                                    <label for="email">邮箱:</label>
                                    <input type="email" name="email" class="form-control" id="email" value="{{old("email")}}">
                                </div>
                                <div class="form-group">
                                    <label for="password">密码:</label>
                                    <input type="password" name="password" class="form-control" id="password" >
                                </div>
                                <div class="form-group">
                                    <label for="confirm">确认密码:</label>
                                    <input type="password" name="password_confirmation" class="form-control" id="confirm" >
                                </div>
                                <div class="d-flex justify-content-center">
                                    <button type="submit" class="btn btn-primary">注册</button>
                                </div>
                            </form>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@stop
